#ifndef _SINGLETON__H
#define _SINGLETON__H

//此头文件仅在VS2008、VS2015下测试通过

template<class T>
class Singleton
{
public:
    static T* instance()
    {
        static T m_instance;
        return &m_instance;
    }
};


#endif //